// 定义李四定义的reducer
import { SET_MSG } from './contants'
export default function (state = { msg: 'hello redux' }, action) {
  switch (action.type) {
    case SET_MSG:
      return {
        ...state,
        msg: action.payload,
      }
    default:
      return state
  }
}
